<?php $form=$this->beginWidget('CActiveForm', array(
                    'id'=>'createtemplate-form',
                    'enableClientValidation'=>true,
                    'clientOptions'=>array(
                        'validateOnSubmit'=> false,
                    ),
                    'htmlOptions' => array(
                        'class' => 'form-horizontal',
                    )
                )); ?>
<fieldset>
	<div class="control-group">
	  <label class="control-label" for="typeahead"><?php echo Yii::t("main","Tên mẫu email");?></label>
	  <div class="controls">
	    <?php echo $form->textField($model,'name',array('placeholder' => Yii::t('main','Tên mẫu email (bắt buột)'),'class' => 'input-large span10')); ?>
	    <?php echo $form->error($model,'name'); ?>
	  </div>
	</div>
	<div class="control-group">
	  <label class="control-label" for="typeahead"><?php echo Yii::t("main","Mô tả");?></label>
	  <div class="controls">
	    <?php echo $form->textField($model,'description',array('placeholder' => Yii::t('main','Mô tả về mẫu email này (không bắt buột)'),'class' => 'input-large span10')); ?>
	    <?php echo $form->error($model,'description'); ?>
	  </div>
	</div>
	<div class="control-group">
	  <label class="control-label" for="typeahead"><?php echo Yii::t("main","Nội dung");?></label>
	  <div class="controls">
	    <?php echo $form->textarea($model,'content',array('class' => 'cleditor')); ?>
	    <?php echo $form->error($model,'content'); ?>
	  </div>
	</div>
	<div class="form-actions">
	  <button type="submit" class="btn btn-large btn-primary"><?php echo Yii::t("main","Lưu");?></button>
	  <button type="reset" class="btn btn-large"><?php echo Yii::t("main","Hủy bỏ");?></button>
	</div>
</fieldset> 
<?php $this->endWidget(); ?>